package com.akk.module.avs.entity;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class AvsLoanConExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AvsLoanConExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andConIdIsNull() {
            addCriterion("con_id is null");
            return (Criteria) this;
        }

        public Criteria andConIdIsNotNull() {
            addCriterion("con_id is not null");
            return (Criteria) this;
        }

        public Criteria andConIdEqualTo(Long value) {
            addCriterion("con_id =", value, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdNotEqualTo(Long value) {
            addCriterion("con_id <>", value, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdGreaterThan(Long value) {
            addCriterion("con_id >", value, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdGreaterThanOrEqualTo(Long value) {
            addCriterion("con_id >=", value, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdLessThan(Long value) {
            addCriterion("con_id <", value, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdLessThanOrEqualTo(Long value) {
            addCriterion("con_id <=", value, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdIn(List<Long> values) {
            addCriterion("con_id in", values, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdNotIn(List<Long> values) {
            addCriterion("con_id not in", values, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdBetween(Long value1, Long value2) {
            addCriterion("con_id between", value1, value2, "conId");
            return (Criteria) this;
        }

        public Criteria andConIdNotBetween(Long value1, Long value2) {
            addCriterion("con_id not between", value1, value2, "conId");
            return (Criteria) this;
        }

        public Criteria andLoanIdIsNull() {
            addCriterion("loan_id is null");
            return (Criteria) this;
        }

        public Criteria andLoanIdIsNotNull() {
            addCriterion("loan_id is not null");
            return (Criteria) this;
        }

        public Criteria andLoanIdEqualTo(Long value) {
            addCriterion("loan_id =", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdNotEqualTo(Long value) {
            addCriterion("loan_id <>", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdGreaterThan(Long value) {
            addCriterion("loan_id >", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdGreaterThanOrEqualTo(Long value) {
            addCriterion("loan_id >=", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdLessThan(Long value) {
            addCriterion("loan_id <", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdLessThanOrEqualTo(Long value) {
            addCriterion("loan_id <=", value, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdIn(List<Long> values) {
            addCriterion("loan_id in", values, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdNotIn(List<Long> values) {
            addCriterion("loan_id not in", values, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdBetween(Long value1, Long value2) {
            addCriterion("loan_id between", value1, value2, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanIdNotBetween(Long value1, Long value2) {
            addCriterion("loan_id not between", value1, value2, "loanId");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityIsNull() {
            addCriterion("loan_eligibility is null");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityIsNotNull() {
            addCriterion("loan_eligibility is not null");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityEqualTo(String value) {
            addCriterion("loan_eligibility =", value, "loanEligibility");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityNotEqualTo(String value) {
            addCriterion("loan_eligibility <>", value, "loanEligibility");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityGreaterThan(String value) {
            addCriterion("loan_eligibility >", value, "loanEligibility");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityGreaterThanOrEqualTo(String value) {
            addCriterion("loan_eligibility >=", value, "loanEligibility");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityLessThan(String value) {
            addCriterion("loan_eligibility <", value, "loanEligibility");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityLessThanOrEqualTo(String value) {
            addCriterion("loan_eligibility <=", value, "loanEligibility");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityLike(String value) {
            addCriterion("loan_eligibility like", value, "loanEligibility");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityNotLike(String value) {
            addCriterion("loan_eligibility not like", value, "loanEligibility");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityIn(List<String> values) {
            addCriterion("loan_eligibility in", values, "loanEligibility");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityNotIn(List<String> values) {
            addCriterion("loan_eligibility not in", values, "loanEligibility");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityBetween(String value1, String value2) {
            addCriterion("loan_eligibility between", value1, value2, "loanEligibility");
            return (Criteria) this;
        }

        public Criteria andLoanEligibilityNotBetween(String value1, String value2) {
            addCriterion("loan_eligibility not between", value1, value2, "loanEligibility");
            return (Criteria) this;
        }

        public Criteria andLoanDocIsNull() {
            addCriterion("loan_doc is null");
            return (Criteria) this;
        }

        public Criteria andLoanDocIsNotNull() {
            addCriterion("loan_doc is not null");
            return (Criteria) this;
        }

        public Criteria andLoanDocEqualTo(String value) {
            addCriterion("loan_doc =", value, "loanDoc");
            return (Criteria) this;
        }

        public Criteria andLoanDocNotEqualTo(String value) {
            addCriterion("loan_doc <>", value, "loanDoc");
            return (Criteria) this;
        }

        public Criteria andLoanDocGreaterThan(String value) {
            addCriterion("loan_doc >", value, "loanDoc");
            return (Criteria) this;
        }

        public Criteria andLoanDocGreaterThanOrEqualTo(String value) {
            addCriterion("loan_doc >=", value, "loanDoc");
            return (Criteria) this;
        }

        public Criteria andLoanDocLessThan(String value) {
            addCriterion("loan_doc <", value, "loanDoc");
            return (Criteria) this;
        }

        public Criteria andLoanDocLessThanOrEqualTo(String value) {
            addCriterion("loan_doc <=", value, "loanDoc");
            return (Criteria) this;
        }

        public Criteria andLoanDocLike(String value) {
            addCriterion("loan_doc like", value, "loanDoc");
            return (Criteria) this;
        }

        public Criteria andLoanDocNotLike(String value) {
            addCriterion("loan_doc not like", value, "loanDoc");
            return (Criteria) this;
        }

        public Criteria andLoanDocIn(List<String> values) {
            addCriterion("loan_doc in", values, "loanDoc");
            return (Criteria) this;
        }

        public Criteria andLoanDocNotIn(List<String> values) {
            addCriterion("loan_doc not in", values, "loanDoc");
            return (Criteria) this;
        }

        public Criteria andLoanDocBetween(String value1, String value2) {
            addCriterion("loan_doc between", value1, value2, "loanDoc");
            return (Criteria) this;
        }

        public Criteria andLoanDocNotBetween(String value1, String value2) {
            addCriterion("loan_doc not between", value1, value2, "loanDoc");
            return (Criteria) this;
        }

        public Criteria andLoanModelIsNull() {
            addCriterion("loan_model is null");
            return (Criteria) this;
        }

        public Criteria andLoanModelIsNotNull() {
            addCriterion("loan_model is not null");
            return (Criteria) this;
        }

        public Criteria andLoanModelEqualTo(String value) {
            addCriterion("loan_model =", value, "loanModel");
            return (Criteria) this;
        }

        public Criteria andLoanModelNotEqualTo(String value) {
            addCriterion("loan_model <>", value, "loanModel");
            return (Criteria) this;
        }

        public Criteria andLoanModelGreaterThan(String value) {
            addCriterion("loan_model >", value, "loanModel");
            return (Criteria) this;
        }

        public Criteria andLoanModelGreaterThanOrEqualTo(String value) {
            addCriterion("loan_model >=", value, "loanModel");
            return (Criteria) this;
        }

        public Criteria andLoanModelLessThan(String value) {
            addCriterion("loan_model <", value, "loanModel");
            return (Criteria) this;
        }

        public Criteria andLoanModelLessThanOrEqualTo(String value) {
            addCriterion("loan_model <=", value, "loanModel");
            return (Criteria) this;
        }

        public Criteria andLoanModelLike(String value) {
            addCriterion("loan_model like", value, "loanModel");
            return (Criteria) this;
        }

        public Criteria andLoanModelNotLike(String value) {
            addCriterion("loan_model not like", value, "loanModel");
            return (Criteria) this;
        }

        public Criteria andLoanModelIn(List<String> values) {
            addCriterion("loan_model in", values, "loanModel");
            return (Criteria) this;
        }

        public Criteria andLoanModelNotIn(List<String> values) {
            addCriterion("loan_model not in", values, "loanModel");
            return (Criteria) this;
        }

        public Criteria andLoanModelBetween(String value1, String value2) {
            addCriterion("loan_model between", value1, value2, "loanModel");
            return (Criteria) this;
        }

        public Criteria andLoanModelNotBetween(String value1, String value2) {
            addCriterion("loan_model not between", value1, value2, "loanModel");
            return (Criteria) this;
        }

        public Criteria andLoanRateIsNull() {
            addCriterion("loan_rate is null");
            return (Criteria) this;
        }

        public Criteria andLoanRateIsNotNull() {
            addCriterion("loan_rate is not null");
            return (Criteria) this;
        }

        public Criteria andLoanRateEqualTo(String value) {
            addCriterion("loan_rate =", value, "loanRate");
            return (Criteria) this;
        }

        public Criteria andLoanRateNotEqualTo(String value) {
            addCriterion("loan_rate <>", value, "loanRate");
            return (Criteria) this;
        }

        public Criteria andLoanRateGreaterThan(String value) {
            addCriterion("loan_rate >", value, "loanRate");
            return (Criteria) this;
        }

        public Criteria andLoanRateGreaterThanOrEqualTo(String value) {
            addCriterion("loan_rate >=", value, "loanRate");
            return (Criteria) this;
        }

        public Criteria andLoanRateLessThan(String value) {
            addCriterion("loan_rate <", value, "loanRate");
            return (Criteria) this;
        }

        public Criteria andLoanRateLessThanOrEqualTo(String value) {
            addCriterion("loan_rate <=", value, "loanRate");
            return (Criteria) this;
        }

        public Criteria andLoanRateLike(String value) {
            addCriterion("loan_rate like", value, "loanRate");
            return (Criteria) this;
        }

        public Criteria andLoanRateNotLike(String value) {
            addCriterion("loan_rate not like", value, "loanRate");
            return (Criteria) this;
        }

        public Criteria andLoanRateIn(List<String> values) {
            addCriterion("loan_rate in", values, "loanRate");
            return (Criteria) this;
        }

        public Criteria andLoanRateNotIn(List<String> values) {
            addCriterion("loan_rate not in", values, "loanRate");
            return (Criteria) this;
        }

        public Criteria andLoanRateBetween(String value1, String value2) {
            addCriterion("loan_rate between", value1, value2, "loanRate");
            return (Criteria) this;
        }

        public Criteria andLoanRateNotBetween(String value1, String value2) {
            addCriterion("loan_rate not between", value1, value2, "loanRate");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaIsNull() {
            addCriterion("loan_quota is null");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaIsNotNull() {
            addCriterion("loan_quota is not null");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaEqualTo(String value) {
            addCriterion("loan_quota =", value, "loanQuota");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaNotEqualTo(String value) {
            addCriterion("loan_quota <>", value, "loanQuota");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaGreaterThan(String value) {
            addCriterion("loan_quota >", value, "loanQuota");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaGreaterThanOrEqualTo(String value) {
            addCriterion("loan_quota >=", value, "loanQuota");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaLessThan(String value) {
            addCriterion("loan_quota <", value, "loanQuota");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaLessThanOrEqualTo(String value) {
            addCriterion("loan_quota <=", value, "loanQuota");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaLike(String value) {
            addCriterion("loan_quota like", value, "loanQuota");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaNotLike(String value) {
            addCriterion("loan_quota not like", value, "loanQuota");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaIn(List<String> values) {
            addCriterion("loan_quota in", values, "loanQuota");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaNotIn(List<String> values) {
            addCriterion("loan_quota not in", values, "loanQuota");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaBetween(String value1, String value2) {
            addCriterion("loan_quota between", value1, value2, "loanQuota");
            return (Criteria) this;
        }

        public Criteria andLoanQuotaNotBetween(String value1, String value2) {
            addCriterion("loan_quota not between", value1, value2, "loanQuota");
            return (Criteria) this;
        }

        public Criteria andLoanTermIsNull() {
            addCriterion("loan_term is null");
            return (Criteria) this;
        }

        public Criteria andLoanTermIsNotNull() {
            addCriterion("loan_term is not null");
            return (Criteria) this;
        }

        public Criteria andLoanTermEqualTo(String value) {
            addCriterion("loan_term =", value, "loanTerm");
            return (Criteria) this;
        }

        public Criteria andLoanTermNotEqualTo(String value) {
            addCriterion("loan_term <>", value, "loanTerm");
            return (Criteria) this;
        }

        public Criteria andLoanTermGreaterThan(String value) {
            addCriterion("loan_term >", value, "loanTerm");
            return (Criteria) this;
        }

        public Criteria andLoanTermGreaterThanOrEqualTo(String value) {
            addCriterion("loan_term >=", value, "loanTerm");
            return (Criteria) this;
        }

        public Criteria andLoanTermLessThan(String value) {
            addCriterion("loan_term <", value, "loanTerm");
            return (Criteria) this;
        }

        public Criteria andLoanTermLessThanOrEqualTo(String value) {
            addCriterion("loan_term <=", value, "loanTerm");
            return (Criteria) this;
        }

        public Criteria andLoanTermLike(String value) {
            addCriterion("loan_term like", value, "loanTerm");
            return (Criteria) this;
        }

        public Criteria andLoanTermNotLike(String value) {
            addCriterion("loan_term not like", value, "loanTerm");
            return (Criteria) this;
        }

        public Criteria andLoanTermIn(List<String> values) {
            addCriterion("loan_term in", values, "loanTerm");
            return (Criteria) this;
        }

        public Criteria andLoanTermNotIn(List<String> values) {
            addCriterion("loan_term not in", values, "loanTerm");
            return (Criteria) this;
        }

        public Criteria andLoanTermBetween(String value1, String value2) {
            addCriterion("loan_term between", value1, value2, "loanTerm");
            return (Criteria) this;
        }

        public Criteria andLoanTermNotBetween(String value1, String value2) {
            addCriterion("loan_term not between", value1, value2, "loanTerm");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneIsNull() {
            addCriterion("loan_phone is null");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneIsNotNull() {
            addCriterion("loan_phone is not null");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneEqualTo(String value) {
            addCriterion("loan_phone =", value, "loanPhone");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneNotEqualTo(String value) {
            addCriterion("loan_phone <>", value, "loanPhone");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneGreaterThan(String value) {
            addCriterion("loan_phone >", value, "loanPhone");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("loan_phone >=", value, "loanPhone");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneLessThan(String value) {
            addCriterion("loan_phone <", value, "loanPhone");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneLessThanOrEqualTo(String value) {
            addCriterion("loan_phone <=", value, "loanPhone");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneLike(String value) {
            addCriterion("loan_phone like", value, "loanPhone");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneNotLike(String value) {
            addCriterion("loan_phone not like", value, "loanPhone");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneIn(List<String> values) {
            addCriterion("loan_phone in", values, "loanPhone");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneNotIn(List<String> values) {
            addCriterion("loan_phone not in", values, "loanPhone");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneBetween(String value1, String value2) {
            addCriterion("loan_phone between", value1, value2, "loanPhone");
            return (Criteria) this;
        }

        public Criteria andLoanPhoneNotBetween(String value1, String value2) {
            addCriterion("loan_phone not between", value1, value2, "loanPhone");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}